<?php
    session_start();
    if(empty($_SESSION)){
        echo "<script>alert('请先登录！');window.location.href='/admin/login/login.php'</script>";
    }
?>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="/admin/public/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/admin/public/css/main.css"/>
    <script type="text/javascript" src="/admin/public/js/modernizr.min.js"></script>
</head>
<body>
    <div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="/admin/index.php" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="/admin/index.php">首页</a></li>
                <li><a href="/admin/index.php" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a href="#">管理员</a></li>
                <li><a href="/admin/login/updatepwd.php">修改密码</a></li>
                <li><a href="/admin/login/reset.php">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="/admin/user/user.php"><i class="icon-font">&#xe008;</i>用户管理</a></li>
                        <li><a href="/admin/article/article.php"><i class="icon-font">
                        &#xe005;</i>博文管理</a></li>
                        <li><a href="/admin/kinds/kinds.php"><i class="icon-font">&#xe006;</i>分类管理</a></li>
                        <li><a href="/admin/reply/reply.php"><i class="icon-font">&#xe012;</i>评论管理</a></li>
                    </ul>
                </li> 
            </ul>
        </div>
    </div>